package cn.com.dstz.admin.constants;

import java.util.HashMap;
import java.util.Map;

public class Constants{
	
	// 管理员的status
	public static final byte ADMIN_STATUS_NORMAL = 0; // 正常状态
	public static final byte ADMIN_STATUS_DISABLED = 1; //禁用
	
	// 账户的status
	public static final byte ACCOUNT_STATUS_DISABLED = 2; // 删除
	
	public static final byte AGENT_STATUS_NORMAL = 0; // 
	public static final byte AGENT_STATUS_DISABLED = 1;
	
	public static final Map< String, String > functionMap;
	
	public static final String CONFIG_NAME = "_hasconfig";
	public static final String AGENT_CONFIG_IN_SESSION = "_config";
	
	//public static final String SEND_HTTP_SERVER = "http://www.dstz.com.cn:9009";
	
	
	static{
		functionMap = new HashMap< String, String >( );
		init( );
	}
	
	private static void init( ){
		functionMap.put( "function", "权限设置" );
		functionMap.put( "admingroup", "系统管理组" );
		functionMap.put( "membergroup", "用户组管理" );
		functionMap.put( "admin", "管理员设置" );
		functionMap.put( "member", "用户管理" );
		functionMap.put( "account", "交易账号管理" );
		functionMap.put( "agent", "居间商管理" );
		functionMap.put( "category", "品种管理" );
		functionMap.put( "noticetype", "公告分类管理" );
		functionMap.put( "notice", "公告管理" );
		functionMap.put( "analysis", "新闻管理" );
		functionMap.put( "video", "视频管理" );
		functionMap.put( "trade", "喊单管理" );
		functionMap.put( "agentconfig", "居间权限" );
		functionMap.put( "suggesstion", "意见反馈" );
		functionMap.put( "skin", "皮肤管理" );
	}
}
